package org.blog.service;

import java.util.List;

import org.blog.helper.Result;
import org.blog.model.ModelAdvert;
import org.blog.model.ModelPassport;

public interface AdvertService {

	/**
	 * 添加广告位
	 * 
	 * @param t
	 */
	public Result<?> addAdvert(ModelAdvert t, ModelPassport passport);

	/**
	 * 修改广告
	 * 
	 * @param t
	 */
	public Result<?> modifyAdvert(ModelAdvert t, ModelPassport passport);

	/**
	 * 获取广告信息
	 * 
	 * @param id
	 * @return
	 */
	public Result<ModelAdvert> getAdvert(ModelAdvert t, ModelPassport passport);

	/**
	 * 获取广告列表
	 * 
	 * @return
	 */
	public Result<List<ModelAdvert>> getList(ModelPassport passport);
}
